package com.ntschy.common.core;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author ezreal_geng
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "分页对象")
public class PageData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前记录起始索引")
    private Integer pageNum;

    @ApiModelProperty(value = "每页显示记录数")
    private Integer pageSize;

    @ApiModelProperty(value = "总记录条数")
    private Long total;

}
